import request from "@/utils/request";
// 获取评论列表详情
export function comment_detail(query) {
  return request({
    url: "/town/comment/info",
    method: "get",
    params: query,
  });
}

// 查询评论列表
export function comment_list(query) {
  return request({
    url: "/town/comment/list",
    method: "get",
    params: query,
  });
}

// 删除评论
export function comment_delete(id) {
  return request({
    url: "/town/comment/" + id,
    method: "delete",
  });
}

// 评论审核
export function comment_examine(data) {
  return request({
    url: "/town/comment/examine",
    method: "put",
    params:data
  });
}
